package org.jeecg.modules.extbpm.process.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.extbpm.process.entity.ExtActDesignFlowData;
import org.jeecg.modules.extbpm.process.pojo.DesFormFlowDTO;
import org.jeecg.modules.extbpm.process.pojo.DesignFormDataDTO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Description: 表单设计器对接流程
 * @Author: jeecg-boot
 * @Date: 2019-06-26
 * @Version: V1.0
 */
public interface IExtActDesignFlowDataService extends IService<ExtActDesignFlowData> {
	
	/**
	 * 	查询关联流程的自定义表单
	 * @return
	 */
	public List<DesFormFlowDTO> getDesFormFlows();
	
	/**
	 * 	根据流程类型查询关联流程的自定义表单
	 * @return
	 */
	public List<DesFormFlowDTO> getDesFormFlowsByProcType(String procType);
	
	/**
	 * 	根据ID查询自定义表单数据
	 * @param id
	 * @return
	 */
	public DesignFormDataDTO getDesignFormDataById(String id);

	/**
	 * 存单据并提交流程接口（表单设计器单据）
	 * @param extActDesignFlowData
	 * @param request
	 * @return
	 */
	String saveAndStartDesFormMutilProcess(ExtActDesignFlowData extActDesignFlowData, HttpServletRequest request);
}
